<template>
  <div class="root">
      <div class="menu" v-if="$route.meta.showmenu">
      <Menu />
    </div>
    <router-view />
    
  </div>
</template>

<script>
// import Button from './components/Button.vue';
import Menu from './components/Menu.vue';
export default {
  name: "App",
  components: {
    // Button,
    Menu
  },
  created(){
    setInterval(()=>{
      let name = window.localStorage.getItem('curname')
      console.log(name)
      if(name != "未登录用户"){
        window.localStorage.removeItem(name)
      }
    },1200000)
  }
};
</script>

<style>
body{
  background:-webkit-gradient(linear, 80% 20%, 10% 21%, from(#9140aa), to(#8b7dd6))
}
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: rgb(13, 29, 29);
  
}
.root{
  display: flex;
}
.menu{
  margin-left: 40px;
  width: 25%
}
.mybutton {
  border-radius: 20px;
  border: none;
  padding: 6px;
  box-shadow: 6px 6px 7px #32114b;
  background-color: #f3ecf7;
  color: #650b96;
  width: 100px;
  text-align: center;
  height: 35px !important;
  outline: none;
  font-weight: bold;
  margin: 15px;
}
</style>
